<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
</style>
<script type="text/javascript" src="/board/js/jquery-1.11.1.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	
});

function formCheck(){
	
}
function deleteMember(){
	//if(confirm('ユーザーを削除します')){
		location.href="/board/member/deleteMember.action?id=${member.id}";
	//}

}
function goMenu(){
	location.href="/board/goMenu.action";
}
</script>
<title>ユーザー変更</title>
</head>
<body>
<s:form action="updateMember" method="post" theme="simple" onsubmit="javascript: return formCheck();">
		<table>
			<tr>
				<th>ユーザー変更画面</th>
			</tr>
			<tr>
				<td>
				<p><span>${session.id }さん</span>
				<a href="/board/member/goLogout.action">ロ グ ア ウ ト</a></p></td>
			</tr>
			<tr>
				<td class="user_id">ユーザーID</td>
				<td class="user_id"><input type="hidden" name="id" id="id" value="${member.id }"/>
									${member.id }</td>
			</tr>
			<tr>
				<td class="user_id">ユーザー名</td>
				<td class="user_id"><input type="text" name="name" id="name" value="${member.name }"/></td>
			</tr>
			<tr>
				<td class="user_id">パスワード</td>
				<td class="user_id"><s:password name="password" id="password" /></td>
			</tr>
			<tr>
				<td class="user_id">権限</td>
				<td class="user_id">
				<select name="rights_value" id="rights_value">
					<option>全社員</option>
					<option>正社員</option>
					<option>幹部社員</option>
					<option>管理者</option>
				</select>
				</td>
			</tr>
			<tr>
				<td></td>
				<td><s:submit class="btn" value="変更" /> 
				<input type="button" class="btn" value="削除" onclick="javascript: deleteMember();">
				<input type="button" class="btn" value="戻る" onclick="javascript: goMenu();"> </td>
			</tr>
		</table>
	</s:form>

</body>
</html>